﻿<Window x:Class="CECB.Project.AddNewProject_Window"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="AddNewProject_Window" 
        xmlns:toolkit="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Input.Toolkit"      
        WindowStartupLocation="CenterScreen" 
        Loaded="Window_Loaded" Background="#AA000000" AllowsTransparency="True" WindowStyle="None" WindowState="Maximized" 
        mc:Ignorable="d" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" d:DesignWidth="1375">

    <Grid Height="800" Width="826" Margin="0,50,0,0"  >
        

        <Rectangle Margin="12,0,0,135" Stroke="White" RadiusY="19.5" RadiusX="19.5" StrokeThickness="4" HorizontalAlignment="Left" Width="814">
            <Rectangle.Effect>
                <DropShadowEffect Direction="330" BlurRadius="24" ShadowDepth="13" />
            </Rectangle.Effect>
            <Rectangle.Fill>
                <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                    <GradientStop Color="Black" Offset="0" />
                    <GradientStop Color="#FFA3A1A1" Offset="0.494" />
                    <GradientStop Color="#FF272121" Offset="0" />
                    <GradientStop Color="#FF272121" Offset="1" />
                </LinearGradientBrush>
            </Rectangle.Fill>
        </Rectangle>
 
        <Label Content="Create a New Project"  HorizontalAlignment="Left"  Margin="30,5,0,0" Height="47.96" VerticalAlignment="Top" Foreground="White" FontSize="21.333"></Label>
         
        <Grid HorizontalAlignment="Right" VerticalAlignment="Top" Margin="0,11,18,0">
            <Image Height="32" Margin="1,2,3,2" Source="/CECB;component/images/closeblack.png"  Width="32" MouseLeftButtonDown="Image_MouseLeftButtonDown" ImageFailed="Image_ImageFailed_1" />
        </Grid>
        
        <GroupBox Margin="30,50,20,0" VerticalAlignment="Top" Height="599">
            <StackPanel Orientation="Vertical" Height="601">
                <StackPanel Height="585">
                    <TabControl Height="591" Name="tabControlCreateProjectWizard" BorderThickness="0" Background="Transparent" Width="762">
                        <TabItem Header="tabItem1" Height="0" Name="tabItem1">
                            <StackPanel Orientation="Vertical" HorizontalAlignment="Center" Width="747">
                                <GroupBox Header="Insert project basic details" Foreground="White" Height="533">
                                    <StackPanel Orientation="Vertical" Margin="0,0,0,0">

                                        <StackPanel VerticalAlignment="Top" Background="#FF3E3832" Orientation="Horizontal" Margin="0,5,0,0">
                                            <Label Content="Project Name" Height="32" Width="160" Margin="140,0,0,0" Name="label_projname" HorizontalAlignment="Center"   VerticalAlignment="Top" FontSize="16" FontStyle="Italic" FontWeight="Medium" Foreground="White" BorderThickness="0" BorderBrush="White" />
                                            <TextBox Name="textBox_projname" TextWrapping="Wrap" VerticalAlignment="Top" Height="28" FontSize="16" Background="#FFFFECA1" SelectionBrush="#FF6E6E6E" Foreground="#FF332F2F" HorizontalAlignment="Right" Width="290" />
                                            <Label Content="*" Height="20" Padding="2,0,2,0" Foreground="Red" FontSize="20"  />
                                        </StackPanel>
                                        <WrapPanel VerticalAlignment="Top" Background="#FF3E3832" Orientation="Horizontal" Margin="0,5,0,0">
                                            <Label Content="Project Catogory" Height="33"   Name="label_projCatogory" HorizontalAlignment="Left" Width="160" Margin="140,0,0,0" VerticalAlignment="Top" FontSize="16" FontStyle="Italic" FontWeight="Medium" Foreground="White" BorderThickness="0" BorderBrush="White" />
                                            <ComboBox Height="28" Name="comboBox_projCatogory" DisplayMemberPath="cat_name" SelectedValuePath="cat_reference"  Width="289" SelectionChanged="comboBox_projCatogory_SelectionChanged" FontSize="16" Background="#FFFFECA1" BorderBrush="{x:Null}" DropDownOpened="comboBox_projCatogory_DropDownOpened">
                                            </ComboBox>
                                            <Label Content="*" Height="20" Padding="2,0,2,0" Foreground="Red" FontSize="20"  />
                                        </WrapPanel>
                                        <WrapPanel Canvas.Left="35" Canvas.Top="234" Background="#FF3E3832" Margin="0,5,0,0">
                                            <Label Content="Client"   Height="33" Name="label_client" HorizontalAlignment="Left" Width="160" Margin="140,0,0,0" VerticalAlignment="Top" FontSize="16" FontStyle="Italic" FontWeight="Medium" Foreground="White" BorderThickness="0" BorderBrush="White" />
                                            <TextBox Name="textBox_client" TextWrapping="Wrap" VerticalAlignment="Top" Height="33" FontSize="16" Background="#FFFFECA1" SelectionBrush="#FF6E6E6E" Foreground="#FF332F2F" HorizontalAlignment="Right" Width="290" />
                                            <Label Content="*" FontSize="20" Foreground="Red" Height="20" Padding="2,0,2,0" />
                                        </WrapPanel>
                                        <WrapPanel Orientation="Horizontal" Background="#FF3E3832" Canvas.Left="33" Canvas.Top="262" Margin="0,5,0,0">
                                            <Label Content="Consultent" Height="33"   Name="label_consultent" HorizontalAlignment="Left" Width="160" Margin="140,0,0,0" VerticalAlignment="Top" FontSize="16" FontStyle="Italic" FontWeight="Medium" Foreground="White" BorderThickness="0" BorderBrush="White" />
                                            <Label Content="CECB" FontSize="16" Padding="2,4,0,0" Height="35" HorizontalAlignment="Left" Margin="0,0,0,0" Name="lblConsultent" VerticalAlignment="Top" Width="289"   Foreground="#FF4E0000" Background="#FFFFECA1" />
                                        </WrapPanel>
                                        <WrapPanel Orientation="Horizontal" Background="#FF3E3832" Canvas.Left="33" Canvas.Top="290" Margin="0,5,0,0" Grid.Row="1">
                                            <Label Content="Approving Agency" Height="33"  Name="label_appAgency" HorizontalAlignment="Left" Width="160" Margin="140,0,0,0" VerticalAlignment="Top" FontSize="16" FontStyle="Italic" FontWeight="Medium" Foreground="White" BorderThickness="0" BorderBrush="White" />
                                            <TextBox Name="textBox_appAgency" TextWrapping="Wrap" VerticalAlignment="Top" Height="33" FontSize="16" Background="#FFFFECA1" SelectionBrush="#FF6E6E6E" Foreground="#FF332F2F" HorizontalAlignment="Right" Width="290" />
                                            <Label Content="*" FontSize="20" Foreground="Red" Height="20" Padding="2,0,2,0" />
                                        </WrapPanel>
                                        <WrapPanel Orientation="Horizontal" Background="#FF3E3832" Canvas.Left="33" Canvas.Top="290" Margin="0,5,0,0" Grid.Row="1">
                                            <Label Content="Location" Height="28"   Name="label_location" HorizontalAlignment="Left" Width="160" Margin="140,0,0,0" VerticalAlignment="Top" FontSize="16" FontStyle="Italic" FontWeight="Medium" Foreground="White" BorderThickness="0" BorderBrush="White" />
                                            <TextBox Height="33" Name="textBox_location" TextWrapping="Wrap" VerticalAlignment="Top" FontSize="16" Background="#FFFFECA1" SelectionBrush="#FF6E6E6E" Foreground="#FF332F2F" HorizontalAlignment="Right" Width="290" />
                                            <Label Content="*" Height="20" Padding="2,0,2,0" Foreground="Red" FontSize="20"  />
                                        </WrapPanel>

                                        <Expander Header="More Location Details"   Margin="140,0,0,0" FontSize="16" FontStyle="Italic" FontWeight="Medium" Foreground="White" Name="expander_locationDetails" IsExpanded="True" IsEnabled="True" Height="261">
                                            <Grid Height="234" Width="436" HorizontalAlignment="Center" Margin="-90,0,0,0">
                                                <Grid.ColumnDefinitions>
                                                    <ColumnDefinition Width="0*" />
                                                    <ColumnDefinition Width="343*" />
                                                    <ColumnDefinition Width="70*" />
                                                </Grid.ColumnDefinitions>
                                                <StackPanel Name="stackPanel1" Margin="3,-34,-15,6" Grid.Column="1" Grid.ColumnSpan="2">
                                                    <WrapPanel VerticalAlignment="Top" Orientation="Horizontal" Margin="0,5,0,0" Height="28" Width="398">
                                                        <WrapPanel Height="18" Name="wrapPanel2" Width="118" />
                                                    </WrapPanel>
                                                </StackPanel>
                                                <WrapPanel Orientation="Horizontal" Grid.ColumnSpan="3" Margin="-18,39,-32,-25">
                                                    <TextBox Height="28" Name="textBox_longitude" Width="220" FontSize="16" Background="#FFFFECA1" SelectionBrush="#FF6E6E6E" Foreground="#FF332F2F" TextChanged="textBox_longitude_TextChanged" KeyDown="textBox_longitude_KeyDown" GotFocus="textBox_longitude_GotFocus" PreviewTextInput="textBox_longitude_PreviewTextInput" KeyUp="textBox_longitude_KeyUp" />
                                                    <TextBox Height="28" Name="textBox_latitude" Width="214" FontSize="16" Background="#FFFFECA1" SelectionBrush="#FF6E6E6E" Foreground="#FF332F2F" TextChanged="textBox_latitude_TextChanged" KeyDown="textBox_latitude_KeyDown" PreviewTextInput="textBox_longitude_PreviewTextInput" GotFocus="textBox_latitude_GotFocus" />
                                                    <Button  Margin="235,0,0,0" Content="Add" Height="30" Name="button_NewRecord" Width="198" Click="button_NewRecord_Click" BorderBrush="White" Background="#FFB7BAA3" />
                                                    <ListView Canvas.Left="12" Canvas.Top="68" Name="listView1" Width="435"  SelectionMode="Single" Height="129" SelectionChanged="listView1_SelectionChanged" Background="#FFFFECA1">
                                                        <ListView.View>
                                                            <GridView>
                                                                <GridViewColumn Header="Longitude" Width="235" DisplayMemberBinding="{Binding  Loc_longitude}"></GridViewColumn>
                                                                <GridViewColumn Header="Latitude" Width="235" DisplayMemberBinding="{Binding Loc_latitude}"></GridViewColumn>
                                                            </GridView>
                                                        </ListView.View>
                                                    </ListView>
                                                </WrapPanel>
                                                <WrapPanel VerticalAlignment="Top" Background="#FF3E3832" Orientation="Horizontal" Margin="-22,4,20,0" Height="34" Grid.ColumnSpan="3">
                                                    <WrapPanel Height="21" Name="wrapPanel5" Width="4" />
                                                    <WrapPanel Height="34" Name="wrapPanel7" Width="32" />
                                                    <Label Content="Longitude" Height="33" IsEnabled="True" Name="label1" Width="206" Foreground="White" />
                                                    <Label Content="Latitude" Height="33" IsEnabled="True" Name="label2" Width="168" Foreground="White" />
                                                </WrapPanel>
                                                <Button Content="Remove" Name="button_RemoveRecord" Click="button_RemoveRecord_Click" Grid.Column="1" Grid.ColumnSpan="2" Margin="220,223,19,-25" BorderBrush="White" Background="#FFB7BAA3" />
                                            </Grid>
                                        </Expander>


                                    </StackPanel>
                                </GroupBox>

                                <StackPanel Orientation="Horizontal" Height="41">
                                    <Button Height="30" Width="100"   Margin="645,0,0,0" Content="Next" Name="Next1" Click="Next1_Click"></Button>
                                </StackPanel>
                            </StackPanel>
                        </TabItem>
                        <TabItem Header="tabItem2" Height="0" Name="tabItem2">
                            <StackPanel Orientation="Vertical">


                                <GroupBox BorderBrush="White" BorderThickness="1" Height="450"  Foreground="White"   Header="Project Type Parameters Details"   Name="groupBox1">
                                    <StackPanel Orientation="Vertical" Height="546">
                                        <WrapPanel Background="#FF3E3832" HorizontalAlignment="Center" Margin="0,10,0,0" Orientation="Horizontal" VerticalAlignment="Top" Height="34" Width="737">
                                            <Label BorderBrush="White" Margin="180,0,0,0" BorderThickness="0" HorizontalAlignment="Center" Content="Project Type" FontSize="14" FontStyle="Italic" FontWeight="Medium" Foreground="White" Height="28"  Name="label22"  Width="98" />
                                            <ComboBox Height="28" Name="comboBox_projType" Width="251" FontSize="16" DisplayMemberPath="ptype_name" SelectedValuePath="ptype_reference" DropDownOpened="comboBox_projType_DropDownOpened" Background="#FFFFECA1" SelectionChanged="comboBox_projType_SelectionChanged"></ComboBox>
                                            <Button Content="New" Foreground="White" Height="28" Name="button_projType_add" Width="46" Click="button_projType_add_Click">
                                                
                                            </Button>
                                            <Label Content="*" Height="20" Padding="2,0,2,0" Foreground="Red" FontSize="20" />
                                        </WrapPanel>
                                        <WrapPanel Height="170" Name="wrapPanel1" Width="587">
                                            <GroupBox Header="Select Main Parmeters for the Project" Height="auto" Name="groupBox2" Width="581">
                                                <Grid Height="147">
                                                    <ListBox Height="121" Background="#FFFFECA1" HorizontalAlignment="Left" SelectedValuePath="mparam_reference" DisplayMemberPath="mparam_name" Name="listBoxMainParam" VerticalAlignment="Top"  FontSize="16" Width="266" Margin="0,-2,0,0" />
                                                    <ListBox Height="117" Background="#FFFFECA1" FontSize="16" HorizontalAlignment="Left" Margin="336,-2,0,0" SelectedValuePath="mparam_reference" DisplayMemberPath="mparam_name" Name="listBoxSelMainParam" VerticalAlignment="Top" Width="233" />
                                                    <Button Content=">>" Height="23" HorizontalAlignment="Left" Margin="282,6,0,0" Name="buttonMParAddAll" VerticalAlignment="Top" Width="48" Click="buttonMParAddAll_Click" />
                                                    <Button Content=">" Height="23" HorizontalAlignment="Left" Margin="282,35,0,0" Name="buttonMParAdd" VerticalAlignment="Top" Width="48" Click="buttonMParAdd_Click" />
                                                    <Button Content="&lt;" Height="23" HorizontalAlignment="Left" Margin="282,64,0,0" Name="buttonMParRemove" VerticalAlignment="Top" Width="48" Click="buttonMParRemove_Click" />
                                                    <Button Content="&lt;&lt;" HorizontalAlignment="Left" Margin="282,90,0,32" Name="buttonMParRemoveAll" Width="48" Click="buttonMParRemoveAll_Click" />
                                                    <Button Content="Confirm" Height="26" HorizontalAlignment="Left" Margin="494,115,0,0" Name="buttonMParaConfirm" VerticalAlignment="Top" Width="75" Click="buttonMParaConfirm_Click" />
                                                    <Button Content="Customize Parameter Details" Height="23" HorizontalAlignment="Left" Margin="0,121,0,0" Name="button_CustomizeParmDetails" VerticalAlignment="Top" Width="266" Click="button_CustomizeParmDetails_Click" />
                                                </Grid>
                                            </GroupBox>
                                        </WrapPanel>
                                        <GroupBox Header="Insert values " Margin="0,0,0,0" Name="groupBox4" Height="auto" Width="583">
                                            <Grid Height="162" VerticalAlignment="Top">
                                                <Grid.RowDefinitions>
                                                    <RowDefinition Height="80*" />
                                                    <RowDefinition Height="82*" />
                                                </Grid.RowDefinitions>
                                                <WrapPanel Background="#FF3E3832" Margin="10,10,201,0" Orientation="Horizontal" VerticalAlignment="Top"></WrapPanel>
                                                <DataGrid  AutoGenerateColumns="False" Background="#FFFFECA1" Height="162" HorizontalAlignment="Left" FontSize="16"  Margin="-2,1,0,0" Name="dataGridSubParameter" VerticalAlignment="Top" Width="567" Grid.RowSpan="2">
                                                    <DataGrid.Columns>
                                                        <DataGridTextColumn Binding="{Binding Mparam_name }" CanUserReorder="False" Header="MainParameter"  Width="90*" Foreground="Black"  />

                                                        <DataGridTextColumn Binding="{Binding SubPrm_name }" CanUserReorder="False" Header="Subparameter Name"  Width="150*" Foreground="Black"  />
                                                        <DataGridTextColumn   Binding="{Binding SubPrm_value }" CanUserReorder="False" Header="Value" Width="150*" Foreground="Black"/>
                                                        <DataGridTextColumn  Visibility="Hidden" Binding="{Binding SubPrm_ref }" CanUserReorder="False" Header="Value" Width="150*" Foreground="Black"/>

                                                    </DataGrid.Columns>

                                                </DataGrid>
                                            </Grid>
                                        </GroupBox>
                                    </StackPanel>
                                </GroupBox>
                                <StackPanel Orientation="Horizontal" Height="143">
                                    <Button Height="36" Width="100"   Margin="550,0,0,0" Content="Back" Name="Back1" Click="Back1_Click"></Button>
                                    <Button Height="37" Width="100"   Margin="0,0,0,0" Content="Next" Name="Next2" Click="Next2_Click"></Button>
                                </StackPanel>
                            </StackPanel>
                        </TabItem>
                        <TabItem Header="tabItem3" Height="0" Name="tabItem3">
                            <StackPanel Orientation="Vertical">
                                <StackPanel>
                                    <Label Content="Additional Details" Foreground="White" FontSize="14"></Label>
                                    <StackPanel Height="2" Background="White"></StackPanel>
                                </StackPanel>
                                <WrapPanel Orientation="Vertical" HorizontalAlignment="Center" Margin="0,10,0,0"   Width="462">
                                    <StackPanel Background="#FF3E3832" >
                                        <Label Content=" Enter Other Details" Height="28" Width="325" Name="label_othDetails" HorizontalAlignment="Left" Margin="5,0,0,0" VerticalAlignment="Top" FontSize="14" FontStyle="Italic" FontWeight="Medium" Foreground="White" BorderThickness="0" BorderBrush="White" />
                                    </StackPanel>
                                    <TextBox Name="tbMultiLine" TextWrapping="Wrap" AcceptsReturn="True" VerticalScrollBarVisibility="Visible"  Grid.Row="1" Height="111" Width="462" Background="#FFFFECA1"></TextBox>
                                </WrapPanel>
                                <WrapPanel VerticalAlignment="Top" HorizontalAlignment="Center" Margin="0,10,0,0" Orientation="Vertical" Height="165" Width="462"  >
                                    <WrapPanel Orientation="Horizontal" Canvas.Left="35" Background="#FF3E3832" Width="462" Height="30">
                                        <Label Content="Select Plan Image" Height="28" Width="319" Name="label_planImage" HorizontalAlignment="Left" Margin="25,0,0,0" VerticalAlignment="Top" FontSize="14" FontStyle="Italic" FontWeight="Medium" Foreground="White" BorderThickness="0" BorderBrush="White" />
                                        <WrapPanel VerticalAlignment="Top" Orientation="Horizontal" Margin="0,5,0,0" />
                                        <Button Height="26" Content="Add" Foreground="White" Name="button_selectPlanImg" Width="37" Click="button_selectPlanImg_Click">
                                           
                                        </Button>
                                    </WrapPanel>
                                    <WrapPanel Background="#FFFFECA1">
                                        <Image Height="133" Name="image_PlanImg" Stretch="Fill" Width="459" />
                                    </WrapPanel>
                                </WrapPanel>

                                <WrapPanel VerticalAlignment="Top" HorizontalAlignment="Center" Orientation="Vertical" Height="164"  Width="462">
                                    <WrapPanel Orientation="Horizontal" Background="#FF3E3832" Canvas.Left="35" Width="462">
                                        <Label Content="Select Model Image" Height="28" Width="225" Name="labelmodelImage" HorizontalAlignment="Left" Margin="25,0,0,0" VerticalAlignment="Top" FontSize="14" FontStyle="Italic" FontWeight="Medium" Foreground="White" BorderThickness="0" BorderBrush="White" />
                                        <WrapPanel VerticalAlignment="Top" Orientation="Horizontal" Margin="0,5,0,0" />
                                        <Button Height="24" Content="Add" Foreground="White" Margin="104,0,0,0" Name="button_selctModlImg" Width="36" Click="button_selctModlImg_Click">
                                             
                                        </Button>
                                    </WrapPanel>
                                    <WrapPanel Background="#FFFFECA1">
                                        <Image Height="125" Name="image_modelImg" Stretch="Fill" Width="459" />
                                    </WrapPanel>
                                </WrapPanel>
                                <StackPanel Orientation="Horizontal" Height="32">
                                    <Button   Margin="550,0,0,0" Content="Back" Foreground="White" Width="100" Height="30" Name="Back2" Click="Back2_Click"></Button>
                                    <Button   Margin="0,0,0,0" Width="100" Height="30" Content="Finished" Foreground="White" Name="SaveButton" Click="button_save_Click"></Button>
                                     
                                </StackPanel>
                            </StackPanel>
                        </TabItem>
                    </TabControl>

                </StackPanel>
                
               
                
            </StackPanel>
            
            
        </GroupBox>
        
        
      </Grid>
</Window>
